﻿function loadPartiview(elementSelector, urls) {
    $.ajax({
        url: urls,
        type: 'GET',
        dataType: 'html', // <-- to expect an html response
        success: function (result) {
            jQuery("" + elementSelector + "").html(result);
        }
    });

    return false;
}


function loadPartiviewMenu(elementSelector, urls) {
    var $this = $(this);
    $.ajax({
        url: urls,
        type: 'GET',
        dataType: 'html', // <-- to expect an html response
        success: function (result) {
            jQuery("" + elementSelector + "").append(result);
        }
    });

    return false;
}

function loadPartiviewMenuprepend(elementSelector, urls) {
    var $this = $(this);
    $.ajax({
        url: urls,
        type: 'GET',
        dataType: 'html', // <-- to expect an html response
        success: function (result) {
            jQuery("" + elementSelector + "").after(result);
        }
    });

    return false;
}
